"""
"""
#from django.test import TestCase
import unittest
from django.test.client import Client

from blog.models import *

Author.get_or_insert(key_name='author',name='test')
class LoginTest(unittest.TestCase):
    def setUp(self):
        self.user = User(name='test',password='password',google_user=None)
        self.user.put()
        self.client = Client()
        self.client.post('/login',{'user':'test','password':'password'})
        

class SimpleTest(unittest.TestCase):
    def test_basic_addition(self):
        """
        Tests that 1 + 1 always equals 2.
        """
        self.failUnlessEqual(1 + 1, 2)

class MblogTest(LoginTest):
    def test_(self):
        pass

__test__ = {"doctest": """
Another way to test that 1 + 1 is equal to 2.

>>> 1 + 1 == 2
True
>>> from blog.models import *
>>> category = Category(name='abc')
>>> category.put()
datastore...
>>> archive = Archive(title='Test',category=category,content='For test',tags='Abc,Hello,ABC')
>>> archive.put()
datastore...
>>> archive.process_tags()
>>> tags = Tag.all().order('name')
>>> [ tag.name for tag in tags ]
[u'ABC', u'Abc'...
>>> 

"""}

